<!--content-->
<?php FrontDialog::registerAssetFiles('application.dialogSkins.yiibackend')?>
<div class='bh-content'>
	<div class='bh-ly-jj-lyorder_con bh-padT10'>
		<?php echo $this->renderPartial('application.views.partials.order.schedule');?>
		<div class='bh-mtop10'></div>
		<?php $form = $this->beginWidget('lib.widgets.CActiveFormAdv')?>
		<div class='order-wrapper'>
			<?php echo $form->hiddenField($model,'items.related_id')?>
    		<?php echo $form->hiddenField($model,'items.goods_id')?>
    		<?php echo $form->hiddenField($model,'items.provider_id')?>
    		<?php echo $form->hiddenField($model,'items.dealer_id')?>
    		<?php echo $form->hiddenField($model,'items.item_price',array('id'=>'price'))?>
    		
    		<?php $this->widget('DatePrice', array(
    			'id' => $model->items->goods_id,
    		))?>
			
			<div class='order-part-wrapper'>
				<table class='order-part'>
					<tr>
						<th width=100>预订线路：</th>
						<td><a href='<?php echo $this->createUrl('travelView',array('id'=>CHtml::value($model, 'items.goods_id')))?>' class='fc_blue1 fw_bold' target='_blank'><?php echo CHtml::value($model, 'items.goods.fulltitle')?></a></td>
					</tr>
					<tr>
						<th><?php echo $form->labelEx($model,'profile.departure_date')?>：</th>
						<td>
							<?php echo $form->textField($model, 'profile.departure_date', array(
								'id' => 'ipt-departure_date',
								'class' => 'bh-ly-jj-lvyouOrder_text',
							))?>
    					<?php /*$this->widget('lib.widgets.my97date.CMy97DatePicker', array(
					 			'model' => $model,
								'id' => 'ipt-departure_date',
					 			'attribute' => 'profile.departure_date',
		                		'htmlOptions' => array(
		                			'class' => 'bh-ly-jj-lvyouOrder_text'
		                		)
							));*/?>
							<?php echo $form->error($model, 'profile.departure_date')?>
						</td>
					</tr>
					<tr>
						<th><?php echo $form->labelEx($model,'items.item_num')?>：</th>
						<td> <?php echo $form->textField($model, 'items.item_num',array(
								'class'=>'bh-ly-jj-lvyouOrder_text',
			                	'id'=>'item-num'
							))?>
							<?php echo $form->error($model, 'items.item_num');?>
						</td>
					</tr>
					<tr height="40">
                		<td class="bh-textRt">预付金额：</td>
                		<td class="bh-strong bh-bodyred bh-font18">¥<label id='money'><?php echo CHtml::value($model, 'items.item_price')?></label></td>
             		</tr>
				</table>
			</div>
			<div class='order-part-wrapper'>
				<table class='order-part'>
					<tr>
						<th><?php echo $form->labelEx($model,'pay_type')?>：</th>
						<td> <?php echo $form->dropDownList($model, 'pay_type',Yii::app()->enum->options('order.payType'))?>
							<?php echo $form->error($model, 'pay_type');?>
						</td>
					</tr>
					<tr>
		            	<th width=100><?php echo $form->labelEx($model,'receiverInfo.receiver')?>：</th>
		            	<td>
		                	<?php echo $form->textField($model,'receiverInfo.receiver',array(
								'class'=>'bh-ly-jj-lvyouOrder_text border_tonyi',
							))?>
							<?php echo $form->error($model, 'receiverInfo.receiver')?>
		                </td>
					</tr>
					<tr>
		                <th><?php echo $form->labelEx($model,'receiverInfo.mobile')?>：</th>
		                <td>
		                	<?php echo $form->textField($model,'receiverInfo.mobile',array(
								'class'=>'bh-ly-jj-lvyouOrder_text border_tonyi',
							))?>
							<?php echo $form->error($model, 'receiverInfo.mobile')?>
		                </td>
					</tr>
					<tr>
		                <th><?php echo $form->labelEx($model,'receiverInfo.email')?>：</th>
		                <td>
		                	<?php echo $form->textField($model,'receiverInfo.email',array(
								'class'=>'bh-ly-jj-lvyouOrder_text border_tonyi',
							))?>
							<?php echo $form->error($model, 'receiverInfo.email')?>
		                </td>
					</tr>
					<tr>
                		<th>备注：</th>
                		<td>
		                	<?php echo $form->textArea($model,'remark',array(
								'class'=>'bh-ly-jj-text-area1',
							))?>
							<?php echo $form->error($model, 'remark')?>
                		</td>
              		</tr>
				</table>
			</div>
			<div class='order-part-wrapper'>
				<table class='order-part'>
					<tr>
		                <th width=100>旅行社名称：</th>
		                <td>
		                	<?php echo CHtml::value($model, 'items.goods.profile.company.name')?>
		                </td>
					</tr>
					<tr>
                		<th>供货商：</th>
                		<td><?php echo CHtml::value($model, 'items.provider.profile.realname')?></td>
              		</tr>
              		<tr>
                		<th>紧急联系电话：</th>
                		<td><?php echo CHtml::value($model, 'items.goods.profile.emergency_tel')?></td>
              		</tr>
				</table>
			</div>
			<div class='order-part-wrapper' style='display:none'>
				<table class='order-part'>
					<tr>
		                <th width=100>同意以下条款：</th>
		                <td>
		                	<?php echo CHtml::radioButtonList('agree', '1', 
		                		array('1'=>'我同意','2'=>'我不同意'),array('separator'=>'&nbsp;&nbsp;')
		                	);?>
		                </td>
					</tr>
					<tr>
                		<th></th>
                		<td>
		                	<textarea style='width:100%;height:200px' readonly>1、本投保人兹申明以上述各项内容填写属实。 
            本投保人已认真阅读并正确理解《平安旅行意外伤害保险条款》各项内容，尤其是有关免除责任的条款。本投保人已经完全获知并认同保险条款、免责、理赔须知等具体内容，

并同意接受条款全部内容。
            
             2、根据《中华人民共和国合同法》第十一条规定，数据电文是合法的合同表现形式。本人接受以平安养老保险股份有限公司提供的电子保单作为本投保书成立的合法有效凭证

，具有完全证据效力。
            
             3、本人同意提供给平安集团（指中国平安保险（集团）股份有限公司及其直接或间接控股的公司）的信息
            				</textarea>
                		</td>
              		</tr>
				</table>
			</div>
			
		</div>
		<div class="bh-ly-jj-lyordersuball">
			<?php echo CHtml::submitButton('确定',array(
				'class'=>'bh-ly-jj-lyordersub bh-strong bh-noborder',
				'name'=>'lyordersub',
			));?>
			&nbsp;&nbsp;
			<?php echo CHtml::resetButton('取消',array(
				'class'=>'bh-ly-jj-lyordersub bh-strong bh-noborder bh-href',
				'name'=>'lyordersub',
				'href' => Yii::app()->request->urlReferrer
			));?>
		</div>
		<?php $this->endWidget()?>
	</div>
</div>
<div class="bh-space"></div>
<script>
	$('#item-num').blur(function() {
		money = $('#price').val()*myPriceNum($(this).val());
		$('#money').html(money);
	});
</script>

<!--content-->
